import { del, get,post, put } from "./http"

 
/**
 * 列表查询 找机订单
 * @param {*} params 
 * @returns 
 */
export const listOrderDemand = (params)=>{
  const url = `/api/order/demand/list`
  return get(url,params)
}
/**
 * 删除 找机订单
 * @param {*} id 
 * @returns 
 */
export const removeOrderDemand = (id)=>{
  const url = `/api/order/demand/${id}`
  return del(url)
}
 
/**
 * 列表查询 询价订单
 * @param {*} params 
 * @returns 
 */
export const listOrderPrice = (params)=>{
  const url = `/api/order/price/list`
  return get(url,params)
}
/**
 * 删除 询价订单
 * @param {*} id 
 * @returns 
 */
export const removeOrderPrice = (id)=>{
  const url = `/api/order/price/${id}`
  return del(url)
}
/**
 * 列表查询 预约订单
 * @param {*} params 
 * @returns 
 */
export const listOrderAppointment= (params)=>{
  const url = `/api/order/appointment/list`
  return get(url,params)
}
/**
 * 删除 预约订单
 * @param {*} id 
 * @returns 
 */
export const removeOrderAppointment = (id)=>{
  const url = `/api/order/appointment/${id}`
  return del(url)
}
/**
 * 修改询价订单状态
 * @param {*} data 
 * @returns 
 */
export const changeOrderPriceStatus = (data)=>{
  const url = `/api/order/price/status`
  return put(url,data)
}
/**
 * 修改询价订单状态
 * @param {*} data 
 * @returns 
 */
export const changeOrderAppointmentStatus = (data)=>{
  const url = `/api/order/appointment/status`
  return put(url,data)
}